namespace YXShop.ExcelLite
{
    using System;

    internal class FormulaTokenTypeEx
    {
        private FormulaTokenType type;

        public FormulaTokenTypeEx(FormulaTokenType type)
        {
            this.type = type;
        }

        public bool IsBinary
        {
            get
            {
                return (this.Type == FormulaTokenType.Binary);
            }
        }

        public bool IsControl
        {
            get
            {
                return (this.Type == FormulaTokenType.Control);
            }
        }

        public bool IsFunction
        {
            get
            {
                return (this.Type == FormulaTokenType.Function);
            }
        }

        public bool IsOperand
        {
            get
            {
                return (this.Type == FormulaTokenType.Operand);
            }
        }

        public bool IsUnary
        {
            get
            {
                return (this.Type == FormulaTokenType.Unary);
            }
        }

        public FormulaTokenType Type
        {
            get
            {
                return this.type;
            }
        }
    }
}

